package org.yenn.pattern.aliyun.behavioral.strategy;

import lombok.AllArgsConstructor;

/**
 * 步骤 3
 * 创建 Context 类。
 */
@AllArgsConstructor
public class Context {
    private Strategy strategy;


    public int executeStrategy(int num1, int num2){
        return strategy.doOperation(num1, num2);
    }
}
